From: Milan Crha Date: Wed, 2 Sep 2026 09:13:05 +0000 (+0200) Subject: endSessionDialog: Do not run gnome-software in 'gdm' mode X-Git-Tag: archive/raspbian/50.5-1+rpi1^2~6^2^2~33 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=c43812357eefa1e32a750bad2c2e9a674b99e404;p=gnome-shell.git endSessionDialog: Do not run gnome-software in 'gdm' mode The gnome-software runs for a logged-in user, in the D-Bus session bus. Running it for the 'gdm' user can be wrong both for user privileges, and because the 'gdm' user does not have a home directory, thus the gnome-software needs to cache everything from scratch, which takes time and resources, delaying the open of the Reboot/Power Off confirmation dialog. Closes https://gitlab.gnome.org/GNOME/gnome-shell/-/work_items/9040 Part-of: (cherry picked from commit 6356944ea47ef8dbdf49a89561ef1b463dc5c3e3) --- diff --git a/js/ui/endSessionDialog.js b/js/ui/endSessionDialog.js index ee26bffb1..eebb0edfc 100644 --- a/js/ui/endSessionDialog.js +++ b/js/ui/endSessionDialog.js @@ -29,6 +29,7 @@ import * as CheckBox from './checkBox.js'; import * as Dialog from './dialog.js'; import * as GnomeSession from '../misc/gnomeSession.js'; import * as LoginManager from '../misc/loginManager.js'; +import * as Main from './main.js'; import * as ModalDialog from './modalDialog.js'; import * as UserWidget from './userWidget.js'; @@ -290,6 +291,9 @@ class EndSessionDialog extends ModalDialog.ModalDialog { if (this._softwareOfflineUpdatesProxy !== null) return; + if (Main.sessionMode.isGreeter) + return; + try { this._softwareOfflineUpdatesProxy = await SoftwareOfflineUpdatesProxy.newAsync( Gio.DBus.session, 'org.gnome.Software', '/org/gnome/Software/OfflineUpdates');